#!/usr/bin/python
# coding=utf-8
'''
@Author:    知行  1181411728@qq.com  
@File  :    03NAME.py
'''

from time import sleep
# 导入webdriver
from selenium import webdriver
from selenium.webdriver.common.by import By

# 示例一个driver对象
driver = webdriver.Chrome()

# 使用driver对象打开商城
driver.get("http://47.92.149.104:100/")

# 定位元素  (定位方法, 参数 )
ele = driver.find_element(By.NAME, "wd")

# 发送字符串
ele.send_keys("包")


# 元素属性
print(ele.text)
print(ele.location)
print(ele.size)


# 延时10秒钟
sleep(10)

# 关闭浏览器
driver.quit()
